package livesun.justiceeternal.utils;

import android.util.Log;

import livesun.justiceeternal.BuildConfig;


public class Logger {
    public static boolean sLog = BuildConfig.DEBUG;
    public static String sTag = "Logger";

    public static void log(String s) {
        if(sLog){
            Log.d(sTag,s);
        }
    }
    public static void log(String name,String value) {
        if(sLog){
            Log.d(name,value);
        }
    }

    public static void e(String name,String value){
        if(sLog){
            Log.e(name,value);
        }
    }

    public static void v(String name,String value){
        if(sLog){
            Log.v(name,value);
        }
    }

    public static void d(String name,String value){
        if(sLog){
            Log.d(name,value);
        }
    }

    public static void i(String name,String value){
        if(sLog){
            Log.i(name,value);
        }
    }

    public static void w(String name,String value){
        if(sLog){
            Log.w(name,value);
        }
    }

    public static void isLog(boolean isLog) {
        sLog = isLog;
    }

}
